package xiangya.bysj.online;


import java.util.Iterator;
import java.util.LinkedList;

import org.springframework.stereotype.Component;

// 缓存类  

@Component 
public class Keeper {
	
	
	
	/**
	 * keeper保存目前在线的药师
	 * key是计算出来的权值
	 * value是在线OLDoctor对象
	 */
	private static LinkedList<OnlineDoctor> keeper = null;

	static {
		keeper = new LinkedList<OnlineDoctor>();
	}
	
	public static LinkedList<OnlineDoctor> getKeeper() {
		
			return keeper;
	}
	
	public static Iterator<OnlineDoctor> iterator(){
			return keeper.iterator();
	}
	
	
	
}
